package com.qf.task;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 *
 * 任务1
 * @author lixu
 */
@Component
public class Task1 {

    /**
     * 执行的任务的内容就可以了
     */
    @XxlJob(value = "zsrwDemo")
    public void executorTask(){
        System.out.println("@XxlJob：执行任务:时间：" + new Date());
    }

}
